package com.vegetable.modules.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 采购退货VO
 */
@Data
@ApiModel(value = "PurchaseDeliveryReturnVO", description = "采购退货VO")
public class PurchaseDeliveryReturnVO {

    @ApiModelProperty(value = "退货ID")
    private Long id;

    @ApiModelProperty(value = "订单ID")
    private Long deliveryId;

    @ApiModelProperty(value = "订单单号")
    private String deliveryDocNo;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "退货时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date returnTime;

    @ApiModelProperty(value = "退货总数量")
    private Integer totalNumber;

    @ApiModelProperty(value = "退货总重量")
    private BigDecimal totalWeight;

    @ApiModelProperty(value = "退货原因")
    private String returnReason;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;
}